<?php

namespace App\Jobs;

use App\Tools\Pano;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;

class MakePanoJob implements ShouldQueue
{
    use InteractsWithQueue, Queueable, SerializesModels;

    use Pano;

    protected $images,$configoption;
    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct($images,$configoption)
    {
        $this->images = $images;
        $this->configoption = $configoption;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        //创建全景漫游
        $this->createPano();
        //组合系统命令
        // $command = public_path() . config('pano.krpanotools') . 'makepano ' . $images . $config . $option;
        //
        // exec($command, $shell_output, $status);
        // print_r($shell_output);
    }
}
